package com.xs.designpattern;

import lombok.EqualsAndHashCode;
import lombok.RequiredArgsConstructor;

/**
 * 精灵法师
 * @author xs
 */
@EqualsAndHashCode(callSuper = true)
@RequiredArgsConstructor
public class ElfMage extends Mage{
    private final String helpType;

    public ElfMage(ElfMage elfMage) {
        super(elfMage);
        this.helpType = elfMage.helpType;
    }
    @Override
    public String toString() {
        return "精灵法师帮忙" + helpType;
    }

}
